searchbar: Fix clearing search entry on hide
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 12 Nov 2020 18:04:42 +0000 (19:04 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Thu, 12 Nov 2020 18:59:55 +0000 (19:59 +0100)
commit056a07306195a6a5fb2cc4466f6719a517f5181c
treec3ca5f9e0a63220eef688b458b55c07fd87499e2
parent5d9799d4e35d407ed151bae51f9295ffbf794476
searchbar: Fix clearing search entry on hide

Commit fa3d1940bf2b36 added separate grab handling for GtkSearchEntry, but
didn't consider whether the bar was revealed or concealed. The expected
behavior for the latter is that the entry is cleared rather than focused,
fix the condition accordingly.
gtk/gtksearchbar.c